package com.example.framelib.utils;
import com.example.framelib.BuildConfig;


public class Log {
    private static final String TAG = "RecordEveryThingForLive";

    public static void trace(String content) {
        if (isLoggable()) {
            android.util.Log.d(Log.TAG, TAG + ": " + content);
        }
    }

    /**
     * Debug
     *
     * @param TAG
     * @param content
     */
    public static void trace(String TAG, String content) {
        if (isLoggable()) {
            android.util.Log.e(Log.TAG, TAG + ": " + content);
        }
    }


    /**
     * 是否打印
     *
     * @return
     */
    private static boolean isLoggable() {
        return BuildConfig.DEBUG;
    }

    public static void v(String tag , String content) {
        if (isLoggable()) {
            android.util.Log.v(tag, tag + ": " + content);
        }
    }

    public static void i(String tag , String content) {
        if (isLoggable()) {
            android.util.Log.i(tag, tag + ": " + content);
        }
    }

    public static void d(String tag , String content) {
        if (isLoggable()) {
            android.util.Log.d(tag, tag + ": " + content);
        }
    }

    public static void w(String tag , String content) {
        if (isLoggable()) {
            android.util.Log.w(tag, tag + ": " + content);
        }
    }

    public static void e(String tag , String content) {
        if (isLoggable()) {
            android.util.Log.e(tag, tag + ": " + content);
        }
    }
}
